mkdir -pv /etc/ceph
mkdir -pv /etc/kolla/config
mkdir -pv  /etc/kolla/config/nova/ /etc/kolla/config/glance/  /etc/kolla/config/cinder/ /etc/kolla/config/cinder/cinder-backup/ /etc/kolla/config/cinder/cinder-backup/ /etc/kolla/config/cinder/cinder-volume/  /etc/kolla/nova/

ln -svfT /etc/ceph/ceph.conf /etc/kolla/config/nova/
ln -svfT /etc/ceph/ceph.conf /etc/kolla/config/glance/
ln -svfT /etc/ceph/ceph.conf /etc/kolla/config/cinder/
ln -svfT /etc/ceph/ceph.client.cinder-backup.keyring /etc/kolla/config/cinder/cinder-backup/
ln -svfT /etc/ceph/ceph.client.cinder.keyring /etc/kolla/config/cinder/cinder-backup/
ln -svfT /etc/ceph/ceph.client.cinder.keyring /etc/kolla/config/cinder/cinder-volume/
ln -svfT /etc/ceph/ceph.client.glance.keyring /etc/kolla/config/glance/
ln -svfT /etc/ceph/ceph.client.cinder.keyring /etc/kolla/config/nova/ceph.client.cinder.keyring
ln -svfT /etc/ceph/ceph.client.nova.keyring /etc/kolla/config/nova/ceph.client.nova.keyring


mkdir -p /etc/kolla/config/glance/
ln -svfT  /etc/ceph/ceph.client.glance.keyring /etc/kolla/config/glance/ceph.client.glance.keyring

mkdir -p /etc/kolla/config/cinder/cinder-volume/
ln -svfT /etc/ceph/ceph.client.cinder.keyring /etc/kolla/config/cinder/cinder-volume/ceph.client.cinder.keyring

mkdir -p /etc/kolla/config/cinder/cinder-backup/
ln -svfT /etc/ceph/ceph.client.cinder-backup.keyring /etc/kolla/config/cinder/cinder-backup/ceph.client.cinder.keyring

ln -svfT /etc/ceph/ceph.client.nova.keyring  /etc/kolla/nova/ceph.client.nova.keyring


# 定制配置
mkdir -pv /etc/kolla/config/{nova,neutron}/{control0{1..3},network0{1..2},compute0{1..2}}
